Updated with GUI and read/write to file and radiobuttons