corrected README.md

updated to reflect what is in index.js
add comments