Re: motorized bicycle setup
As long as you ride safely, with a helmet, hopefully a bright vest, never against the flow of traffic or on sidewalks, cops tend to leave ya alone.
As for your bike, always make sure it's in good condition. I inspect mine every week for cracks or anything loose.
Keep all cables and brakes adjusted, tires inflated, watch for valve stem creep on your rims. Use blue Loctite on high-grade fender and rack screws.