Reformat pkg.html for legibility.
Add headings to types / functions to give sidebar navigation something to hang off.