Added comments to index.js