Added documentation comments for index.js
Add yuidoc instructions to the README