Make minimum depth of included headers configurable in gen_toc

I tried to use gen_toc for my own project, and found that it skips the first level of headers. I modified it to be configurable by a command line argument. The default behavior is the same as before, so your TOC is not broken if you use it the same way as before, but the script can be more useful for more general purposes.