(4)The agreement with the crew shall be so framed as to admit of stipulations, to be adopted at the will of the master and seaman in each case (not being inconsistent with the provisions of this Act) respecting the advance and allotment of wages and may contain any other stipulations which are not contrary to law.