More  documentation
a refactored documentation.
added index.js, updated package.json to reflect dependencies
updates to index.js