Added some comments to index.js