Section 30. Whoever violates any provision of this chapter shall be punished by a fine of not more than five hundred dollars or by imprisonment for not more than six months, or both.