added switch docs