updated readme and changed the errors variable to messages