Minor error checking, added readme