(a) Any person who violates a provision of this chapter or fails to comply with this chapter, or with any of the requirements of this chapter, or who erects, constructs, alters, or has erected, constructed or altered a building or structure in violation of this chapter, commits a Class B misdemeanor.
(b) The owner of a building, structure or premises where anything in willful violation of this chapter has been constructed or exists, and any architect, builder, contractor, person or corporation who has constructed or designed, or who has assisted in the construction or designing of the building, structure, or premises, each have committed a separate offense and, upon conviction of the offense, shall be fined as provided in subsection (a). The owner of a building, structure or premises where anything in willful violation of this chapter other than as referred to in this subsection (b) is placed or exists, and any agent, person or corporation employed in connection with the violation and who assisted in the commission of such violation each have committed a separate offense and, upon conviction of the offense, shall be fined as provided in subsection (a).