Add high-level comments to index.js.
Still need more comments, but should help for now.