(a) A certificate of occupancy issued by the building official is required in advance of occupancy or use of: (1) A building hereafter erected, altered or moved. (2) A change of use of any building or land. (3) Each nonconforming use created by the passage of and subsequent amendments to this chapter. Such nonconforming use shall obtain a certificate of occupancy within 30 days of the date of such passage or amendments. (b) Upon payment of any required fees, the building official shall sign and issue a certificate of occupancy if the proposed use of land or building, as stated on the certificate of occupancy, is signed by the owner or his appointed agent, is found to conform to the applicable provisions of this chapter, and if the building, as finally constructed, complies with the plans submitted for the building permit.