Replace TOC with an autogenerated one. Fixes #25