added state diagram for circuit breaker