A certificate of occupancy issued by the building inspector is required in advance of the use or occupancy of: (a) Any lot or a change or extension in the use thereof. (b) A building hereafter erected or a change in the use of an existing building. (c) Nothing contained herein shall require a user to comply with minimum setback or side yard requirements for use of an existing structure. A certificate of occupancy, either for the whole or a part of a building, shall be applied for coincident with the application for a building permit and shall be issued within ten days after the erection or structural alterations of such building, or part thereof, shall have been completed in conformity with the provisions of this ordinance. A certificate of occupancy shall not be issued unless the lot, building or structure, or use thereof complies with all the provisions of this ordinance. If the certificate of occupancy is denied, the building inspector shall state in writing the reasons for refusal and the applicant shall be notified of the refusal. A record of all certificates shall be kept on file in the office of the building inspector and copies shall be furnished on request to any person having a proprietary or tenancy interest in the building or land involved.