The said boards may respectively make and publish all needful regulations for the government of the inspectors, and of dealers in food, and may enforce such regulations by proper penalties, and they may prescribe and regulate the compensation of the inspector and his fees and perquisites, and define his duties.