Modify TOC for only main sections and append Index which links to all sections