Added README documentation, fixed a couple of other bugs