Merge pull request #3 from DawsonG/master

Improved TOC and added pagebreaks
Add pagebreaks to sample usage
Remove warnings

If the previous code is run on a PHP with error output, the messages
corrupt the file output.
Change TOC id generation method
Restore old TOC links
Update README.md
Create LICENSE