Start by printing this and keeping it with you. Then dig around until you can find the specific federal regulation and regulations pertinent to your state, print those out, too.
I used to do motorized bicycles, got pulled over with a friend once. Cop was all "You have to have registration and insurance and and and." I said, "Wait, I have the Illinois law on my phone here, this went into effect Jan 1 this year [I forget now what year that was]." Cop took the info back to his car for a few minutes (in the meantime, I was putting my chain back on, it had fallen off). He comes back and says, "I learned something new today. Be safe."
Told him we had our route planned out to avoid the high traffic roads already, that we always followed the rules of the road for cars and bicycles. I'm sure it didn't hurt that we were both wearing full face helmets and armored jackets.