Cleaned up the documentation

Made the documentation more readable by adding syntax highlighting and breaking up some of the code blocks that were previously inlined. Looks much better.