add peak detection to get dist and time threshold
Merge branch 'feature-using-peakpetect'
add peak detection to get distance and time threshold
add peak detection to get time and distance threshold for click