slightly changed error handling
added to_s methods for NewTokenMessage and FailedMessage