Extra functions for generating appendix tree and carving out appendix subsections. Also, related tests
Update examples for generating html and json