Added ability to create hierarchical TOC