Adding a PEAR-style document header
And and reformatting some code comments
Improve try/catch logic

Also, solve issue #196.
Change header tags

H1 is reserved for the page header—using H2s instead.