query now properly handles the same word appearing multiple times on the same line and can parse entire phrases
readQueries will parse both single words and phrases and print them in a useful format