Updated build script to generate TOC