Allow any number of TOC levels.
remove CONNECTION.
Merge pull request #19 from macnuts/toc_fix

Allow any number of TOC levels.