Adds README and cleans up code.