rename parameter case to switch
fix switch is not supporting else content block
some documentation improvement