Adding npmignore which should be different from gitignore file, and adding minor error handling for long messages