Added functions to write/modify notes.