Merge pull request #5 from marmotz/master

Add link to TOC.
Debug of TOC links.
Add first unit tests.
add id in toc tree to easily create correct links when using raw toc