addNoteToTask function

Added the addNoteToTask function