What to do if you are pulled over
It is not necessary to admit any type of guilt or innocence to the officer; answer questions with a simple "Yes" or "No" and do not offer any unsolicited information. Do not argue with the officer, even if you are sure that you did not commit any type of traffic offense. You will get your chance to contest the ticket in court. Be polite to the officer since they are probably monitoring your behavior and are more likely to negotiate with cooperative drivers.
If you are issued a traffic ticket, it is okay to sign the ticket; this does not mean you are admitting guilt, just that you are acknowledging the receipt of the ticket and are agreeing to appear in court or pay the fine. If you plan to contest the ticket, you should immediately record everything about the event and get pictures or witness statements, if possible.
Keep in mind that officers do have the right to ask you to get out of your car if they have probable cause that some illegal activity is taking place. If the worst happens and you are arrested, the officer must read you your Miranda rights. You have the right to remain silent and you should not say anything until your lawyer is present.