Added doc on switch
Added notes and changed possible template exmple