revert previous int->float change, we need an int. We should be careful that we don't modify the preferences file
use more often TRIAL, so that detectspindle could work with multiple trials (not possible yet), and calculate area under the curve. I'm pretty confident about the value for the threshold detection, less for the maxima method