Whenever a violation of this chapter occurs, or is alleged to have occurred, any person may file a written complaint. Such compla int stating fu lly the causes a nd basis the reof sha ll be filed with the building inspector. He shall record properly such complaint, immediately investigate and tak e action t her eon as provided by this chapter.