Format the code samples

Add Markdown for the code samples so it appears nicer.