changed main file from index.js to lib/index