added more error handling debug statements
latest updates
Merge branch 'master' into pdfinfo