Index and search words in text files