Documented the lex.py file