Display results of query on screen; bug fix for divide by zero in IDF; minor refactoring; setup/cleanup scripts