Fix nesting issues, display of slabs and headings

Fix issues with improper nesting and missing tags.
Remove preceding space on several list items
Remove trailing spaces and run markup through html beautifier