Added argument check for clearing notes to make sure note number is valid integer.