Updated package.json
Fixed and added test, updated readme for reduce