Rename index_switch to indexSwitch
Merge pull request #2 from kajames/working

Rename index_switch to indexSwitch