fixed the infinite loop problem in the lexer and took namespace std out of TokenStream.h