Some small but important modifications:
printing top 20 instead of top 15.
printing frequency for queries
improved classifier and showing all ways to calculate gains