Changed int declarations to #define
Added documentation to switch sketch