Replace defaults in switches with returns at ends of functions to avoid 'function ends without a return statement' errors when installing binary.
Merge pull request #5 from amitkgupta/master

Replace defaults in switches with returns at ends of functions to avoid 'function ends without a return statement' errors when installing binary.