expanded upon token type class in order to store errors, warnings and debug prints