closed stream in Lexer
added simple print in main to test lexer