(a) Any person who violates any provision of this chapter, or fails to comply with the requirements of this chapter, shall, upon conviction, be subject to penalties and costs as set forth in section 1-9. Each day such violation continues shall be considered a separate offense. The owner or tenant of any building, structure, premises or part thereof, and any architect, builder, contractor, agent or other person who commits, participates in, assists in or maintains a violation of this chapter may each be found guilty of a separate offense and suffer the penalties set forth in this subsection. (b) If any building or structure is or is proposed to be erected, constructed, reconstructed, altered, converted or maintained, or any building, structure or land is or is proposed to be used in violation of this chapter, the director, county attorney or other appropriate authority of the county, or any adjacent or neighboring property owner who would be specially damaged by such violation, in addition to other remedies, may institute injunction, mandamus or other appropriate action or proceeding to prevent such unlawful erection, construction, reconstruction, alteration, conversion, maintenance or use, or to correct or abate such violation, or to prevent the occupancy of such building, structure or land.