fixed remaining bugs with building stats.dat files with permutations.
removed debug output