The Ten Commandments were written at a particular place and time to change Hebrew society from a statue-worshiping elitist priestly society to a monotheistic populistic one.
Check out these cool pages on the podcast's website:
Click here to see Exodus divided into "sources" according to the Documentary Hypothesis
The podcast is written, edited and produced by Gil Kidron