fix parsing toc.txt
add core docs and pragmas to toc.txt