Be it further enacted by the authority aforesaid, That shall be elected, when other city officers are elected, a superintendent of public works, who shall have general supervision of the electric lights and all that is connected therewith, and the performance of all other duties that may be required of him by ordinance or resolution.