Changed TOC and Wrote Headers