fixed location issue and implemented debug logger
Merge branch 'master' of https://github.com/uttesh/pdfngreport