Exporting notes properly