Some exception handling, changed GUI output format a bit