Various improvements to docs formatting

Clearing up some of the broken formatting in the docs, in no particular order.