fixed npm install, changed src to lib

Standard name for source files for node package is 'lib', so I changed 'src' to 'lib'.
Plus I fixed the index.js which is the entry point of the package, and therefore should expose all the public functions. This was done in /src/index.js but this is useless. Now /index.js contains all the exports.