My question involves criminal law for the state of: Massachusetts.
Before i get started on explaining what exactly happened i just want to clarify a couple of points.
1. I'm using this as an desperate attempt for answers, i'm not expecting somebody to come and answer all of my questions for me like an attorney would/could its more of an opinion based question for somebody who has been through something similar experience wise.
2. I'm not in any way shape or form incriminating myself more than i already have.
3. I'm writing this for other peoples opinions and perspectives on what they think i could be possibly facing in terms of legal accusations/jail time etc..
Okay so concluding.. I'm 19 years old, currently unemployed as of last month, worked at UPS prior to the christmas season as a seasonal helper. On tuesday January 22nd Me and a good friend of mine were traveling in his vehicle (blue Honda accord) traveling south bound on a new intersection in our hometown (Pittsfield,MA) when we had noticed that we had a state trooper following closely behind us. Now, before i go any further i want to state that this same officer had pulled me over on my way to work a couple weeks prior and illegally searched my vehicle for illegal window tint and found an empty jar with residue from marijuana in it and found a pre rolled joint in my center console. I was charged with a 100 dollar civil fee and a 250 dollar fee for the illegal window tint. Back to the story, the officer follows us and waits for us to slip in some way shape or form, and that to him is that we crossed "2 feet" into the breakdown lane on a right on red intersection. Before he pulled us over after we had already "broken the law" in terms of traffic violations he decided to antagonize and follow us for another 2 blocks before he flickered his lights on and followed through with the traffic stop. Now me and buddy had smoked a joint before we had entered the vehicle and we had some illegal things in our possession that i will admit. So he pulls us over and approaches my side first before he brings up anything about us breaking the law in terms of driving (because of our former altercation and his personal vendetta against me im assuming) and starts questioning me first. He realizes im the one from the week or two beforehand who had given him attitude and it seems he wanted to prove some type of point. Next he walks over to my buddies side and says "i smell the marijuana give it up before i get the dogs here" now concluding under the marijuana laws in mass it states that you can't search under the smell of burnt marijuana anymore but there was no way to distinguish if he could smell the odor of us from smoking or the marijuana that was actually in the vehicle. At that point, we had nothing to lose so my friend gave up the jar with approximately 10 grams of marijuana in it (clearly under an ounce). Next he approaches my side and asks if he can search my backpack, i told him no and his response was wrong answer and cuffed me and i didn't have a say on what happened from there. He searched my backpack after i admitted i had some marijuana in there and he found 4 ounces and a scale/grinder. He took me and my friend back to the station and on the ride he asked if we had any money on us i stated no, which was a lie on my part i had 1512 dollars cash stuffed in my shoe that me and my girlfriend have been saving for a month or two together because she just found out she is pregnant and we were saving for an abortion or supplies if we decided to keep it. He convinscated the money and gave me a seized money report and took my Iphone5 under a warrant to search for drug trafficking activity. Now im gonna be pretty cut and dry considering lying won't get me anywhere at this point. Me and my buddy basically admitted that we had the intent to distribute (i know it's an amateur mistake) but we got screwed over psychologically pretty badly . what i PERSONALLY am hoping for is the case will be dropped under the illegal search and seizure laws or an illegal pullover if i can prove this officer has a personal problem with me. and as far as the money goes i most definitely would like to take action in getting it back.. Anyone who has dealt with something similar please feel free to leave some tips and give me a slap of reality on what's really going to happen here. Thanks

