code cleanup
Merge branch 'toc-fix'
Do not use assigned names "next" and "id", rename to order_toc_list and clean up code
adding test for out of order headlines
Merge pull request #192 from benjaoming/master

Little changes