adding missing semicolons, fixing variable name collision, and copyediting in README.md