fix header alignment
Added support for table of contents
Merge branch 'foundation' into toc1