Removing to_json and to_hash methods from Lexeme::Token and changing it's attr_accessor to attr_reader