Various formatting fixes for consistency; use syntax highlighting for code blocks