Updated README and fixed a few bugs.