fixed bug in note.equals

Fixed issue #8.