Refactor temp file code
Strip stop words from the index