modified getTokenString to be static
added static modifier to getClass() and implemented syntax error methods