Move each command in its own function in cui.py. Makes the code easier to follow.
The search query now returns the word frequency and average index.
Start implementing interactive search console UI. Snapshot of work in progress, not functional.