fixed comments in extractPeaks