new function returns path to generated PDF, instead of pushing it to output stream
adding function scope to variables because duh.
Merge pull request #4 from zburke/master

new function returns path to generated PDF, instead the PDF itself