Fix some code blocks and missing headings.