Added a GUI!

The program now features a second program which can be used to edit the
settings. It auto-checks for valid input, so the user can't do anything
wrong, even if they enter a string into the number field. Also added I/O
mode 'r' to main.py.