More work on Lexer. Added Titanium Testing code.