GUI small modifications

support user defined output file & handle the exceptions