fix .npmignore
minor refactor
change arguments order in .scan, .reduce, and .diff