Main till tokenize and textindex