fix a few typos, edit the README and clean up example.