Fixed lexer error
Bugs:
 - infinite loop
 - out.write problem in Error class