update main

prepping for the creation of a switch-statement to be implemented
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
Update main.cpp
update main

added a todecimal function
Update main

implementing a switch statement into program to make choice easier and changed loop in program to repeat.
Merge pull request #5 from autochthonexalt/switch-state

Switch state