Bugfix for dark to light thresholding in findThresholdCrossing
Added noise reduction technique via departureThreshold parameter