Civil penalties. Violation of any provision or requirement of this chapter or violation of any statement, plan, application, permit or certificate approved under the provisions of this chapter is hereby declared to be an offense, punishable by a fine not exceeding $350 or imprisonment for a period not to exceed six months, or both, for conviction of a first offense; for conviction of a second offense, both of which were committed within a period of five years, punishable by a fine not less than $350 nor more than $700 or imprisonment for a period not to exceed six months, or both; and, upon conviction for a third or subsequent offense, all of which were committed within a period of five years, punishable by a fine not less than $700 nor more than $1,000 or imprisonment for a period not to exceed six months, or both. However, for the purpose of conferring jurisdiction upon courts and judicial officers generally, violations of this chapter or violation of any statement, plan, application, permit or certificate approved under the provisions of this chapter shall be deemed misdemeanors and for such purpose only all provisions of law relating to misdemeanors shall apply to such violations. The owner, general agent or contractor of a building premises, or part thereof, where such a violation has been committed or does exist and any agent, contractor, architect, builder, corporation or other person who commits, takes part in or assists in such violation shall be liable for such an offense. All such penalties shall be collectible by and in the name of the Town; each and every week that any such violation continues after notification that such violation exists shall constitute a separate offense. Such notice shall be given in writing by the Code Enforcement Officer and shall be served by certified mail or personal service.