Fixed comments and added syntax highlighting to code snippets.