Though I feel sympathy for this person he obviously is not aware of how to avoid jail.
1. He didn't stop completely. Hope he fixes that.
2. He did not obey the speed limits. Hope he drives more carefully.
3. He did not do a proper traffic stop where he opens his window just enough to get the documents exchanged.
3a. He did not keep his mouth shut.
3b. He volunteered to have the vehicle searched.
3c. He did not have a dash cam running.
3d. He did not keep the receipt for his donuts.
4. He did not have a lawyer on speed dial
5. He did not call for a sergeant to be brought to the scene when there was a request to search (everyone has this option).
Had he done those simple things, or even just item 3-5 he would not have been jailed and he would not have created work for the crime lab and he would not have called into question the actions of an 11 year veteran LEO.
Shame on him. I think he should give up the idea of suing, he brought this on himself and he should apologize to the officer and he should try to learn some lessons from this.