add index.js for module.exports, fix typos in readme