Merge pull request #1 from cyphar/master

Add functionality to sanely quit the program
Tidied README
Fixed conflict in README.md
Tidied README
Slightly fixed up switch
Separated out main loop
Tabs->spaces