added switch level constants to API
updated commenting for switch function to show new switch level constants. Also fixed parameter name from keyword level to switchLevel