some comments for index.js
fixed link to example
add link to documentation