changed createNote and setNoteText to take attribute name:value map instead of just test value