Section 20. Such assistants shall be subject to the direction and control of the harbor master of their town, and shall have all the powers given to, and be subject to all the duties required of, harbor masters by law.