update peakdetection
added: peakDetection