Export functions will now show a dialog if there is no data, and will not create a file; fixed a few comments.