Added documentation to index.js
Merge pull request #6 from kmeurer/master

Add documentation to index.js