checkpoint
Merge branch 'dev' into rmax
checkpoint
Merge branch 'dev' into rmax
Fix slope checking assumptions and normalizeErrors methods

Slopes should be within the min/max range or 0 if the maximum lag
is reached. Restore old behaviour for normalizeError methods.