Added hysteresis to still detector
abs/fabs bugfix, logging cleanup