cleaned up code, added a README.md