Forces script to exit if a file of the same name already exists. Added
the ability to specify the directory for the note.