added validation tests, fixed validation logic, added a little more information to README