If case to switch case

Changed the if case to switch case, should be much easier to understand
for the beginners.

Added instructions on how to setup