replaced run_simple to fix maven, write toc to index file.