Updated docs with new markdown

I've updated the docs so that the code sections use markdown syntax for code blocks. This makes the documentation much easier to read.