Fixed A LOT of problems in lex, still more work needed