udpated the README file and cleaned up a few places in the code