Enabling the main switch charges the capacitor and when opening the switch you can see the capacitor continue to power the led. Press and hold the momentary toggle button to discharge the capacitor and the led dims away... Just guessed re the component values - just learning.