To do: We still need better error handling. - File exists: overwrite? - Write failed popup. - Check for empty file at the end (what if dot does not support this particular output format?)