The building official shall have powerto modify any of the provisions of the various uniform or standard codes adopted in this chapter upon application in writing by the owner, developer or lessee, or the duly authorized agent of the owner, developer or lessee, when, in the opinion of the building official, there are practical difficulties in carrying out the strict letter ofthe codes, provided that the spirit of the codes shall be observed and substantial justice done. The particulars of such modifications, when granted or allowed, and the decision of the building official shall be entered upon the records of the department and a signed copy shall be furnished to the applicant.