Municipal enforcement of by-laws to include apprehension, investigation and prosecution of offenders