Enable global constructors, use them in Leanpub example
Merge pull request #3 from GaryJones/global-constructors

Enable global constructors, use them in Leanpub example
Add phpdoc for global variables from pandocfilters.php so the IDE doesn't complain
Add a bit more explanation to the global variables
Rename method to hopefully make it more easily understandable