bug fixes and testing on error conditions
removed npm-debug.log from version control