Can someone explain me how come that mini circuit at the top is the same as the beginning of a bigger circuit? It's a bit confusing to me. And what is the purpose of having capacitor in this circuit? Discharging through resistor while connection is off?