add .npmignore file
refactor into files