fixed errors revealed in testing, added to readme