Table of Contents automation

* Made the creation of the table of contents completely automatic and capable of being used on any setting page.