added simple table of contents parsing