Update notes for submitted changes

* Refactor the `matches` function