Added additional error checking for better trouble shooting
Merge pull request #2 from R3dy/master

Added additional error checking for better trouble shooting - Thanks for submission!