signal.R updated to smooth values before dip finding