csv exports regular notes using array.
Now csv exports both regular and deleted notes.
Simplified csv code.
Simplified csv code even more.
Changed csv export
Changed use of map in csv export.
Fixing typo
Fixed a few errors.