add peakdet to library