removed console.log statements, fixed comment typo
cleaned up indentations, added errorHandler
patch number bump for npm