now only takes terms out of the running for exact matches. now outputs to three files