parallelize main loop instead of inner loop; print corpus stats.