moved index.js to lib
updated README.md