turned all script into operating on a list of queries (all of quiz 2), produces a text file of answers.