fine tuned exit dialog
implemented rudimentary export to file