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