Reorder sections

Hopefully the new ordering makes the docs easier to follow.