cleaned up a lot of the code and created the README file