GUI almost fully functional, only need to dump output file and to catch
some exceptions properly and return reasonable values