duties and responsibilities of captain of the ship