Merge pull request #48 from vcardins/master

Added PDF document creator
fixed a few issues with the logging