changed peaksumsToFile to divide by number of peaks in bin