added offset correction for duty cycle and ripple plots