The book “Unfair: The New Science of Criminal Injustice” discusses a lot of the failings of the system, and gives suggestions on how to fix the system without tearing it down. In discussing the failings, he gives a lot of thoughts on why things are as they are, etc. It’s a pretty easy read.
In case you missed the link on the origins of police somewhere else in the comments: https://worxintheory.wordpress.com/2014/12/07/origins-of-the...
It's also handy for dealing with political opponents. Like imagine Occupy starts up again and gains real traction this time. The sight of its leadership being perp-walked into federal court can be real demoralizing. If the FBI has the ability to arrest them on procedural crimes any time they want, they could break up the entire operation before it poses a threat to the status quo. Do you think COINTELPRO actually went away?