Section 51. The owner, lessee, mortgagee in possession or occupant, being the party in control, of a place of assembly, theatre, special hall, public hall, factory, workshop, manufacturing establishment or building shall comply with the provisions of this chapter and the state building code relative thereto, and such person shall be liable to any person injured for all damages caused by a violation of any of said provisions. No criminal prosecution for such violation shall be begun until the lapse of thirty days after such party in control has been notified in writing by a local inspector as to what changes are necessary to meet the requirements of such provisions, or if such changes shall have been made in accordance with such notice. Notice to one member of a firm or to the clerk or treasurer of a corporation or to the person in charge of the building or part thereof shall be sufficient notice hereunder to all members of any firm or corporation owning, leasing or controlling the building or any part thereof. Such notice may be served personally or sent by mail.