Edited text_search.py

Now incorperates command line things.