adding SwitchControl to library. Resolves #4