improved task2_determine_switch documentation