Finalize export script

Since diag_log doesn't support line breaks, move to copyToClipboard and also fix some missing line breaks.