edited comments in computeNotes method for clarity