Such contracts shall set forth the proportion of the cost each party thereto shall assume and specify all the details of the management of the joint undertaking, and any other matters that may be deemed necessary for insertion therein, and may be amended from time to time by the contracting parties.