Added Text, Tokenizer and Parser types.
Added further unit tests for tokenizer.