Changed if/else nesting to switch/case statement. It should run faster and looks cleaner
Merge pull request #1 from matthewbadeau/patch-1

Changed if/else nesting to switch/case statement.