Why the hell did you let him search the car? He had no probable cause whatsoever to search it. Damn it, you have fucking rights in this country. You don't have to consent to a search because of some officer on a power trip. After he said that he wants to search your car, say "No officer, and if I'm not under arrest for anything, I'd like to go." If he tries to keep you there, tell him to fuck off.