update docstrings, add Match test