Cleaning up code and starting to write README.md.