added basic comments to switcher.py