Toc headings

Fix the table of contents pushing the content down rather than appearing to the right. Also fix cumulative right hand padding squashing sub items in the table of contents