It shall be the duty of the building inspector or mayor, and he is hereby given the authority, to interpret, administer, and enforce the provisions of this chapter. The city council is hereby given the authority and responsibility to appoint a building inspector.