updated version and added bin attribute
refactored code
changed nodejs and npm versions