Add .npmignore
Fix bug fixes/typos after code move/conversion to a class