[A] Slope detector and Re-do Calibration

I added slope detector and re-do calibration feature.