Use equals style for h1.
Add structure for table of contents generation.
Fix header newlines.