Enhancements for faster lexing and memory leak

I found a memory leak where you were allocating memory for strings twice and removed it (end of flex file) and improved the lexer rules to be slightly faster and more manageable.