lex for comments, lots of type checking done, foreach grammar changed, program extensions modified