Added createDirectory() to automatically create note directory