added module.exports and npm main