313.04 Duties.—Every master of any vessel arriving at the ports in this state shall report to the harbormaster for a station, or for a berth at the wharves, and the harbormaster shall regulate and station or assign berths at the wharves to said vessel; and the harbormaster shall remove or cause to be removed, from time to time, all vessels not employed in receiving or discharging their cargoes to make room for such others as require to be more immediately accommodated for the purpose of receiving and discharging their cargoes, and to facilitate their dispatch. Said harbormasters shall be present at all times, either in person or by deputy, to facilitate by stationing or assigning berths at the wharves to vessels arriving at the port, and to facilitate them in discharging and receiving their cargoes and to prevent confusion and delay. And the harbormasters shall have full and absolute power to determine how far and in what instance it is the duty of masters, and others having charge of vessels, to accommodate each other in their respective situations.