The corporate authorities of each municipality may appoint harbor masters and define their duties.