Fix index.js and add more README.md detail