Documentation for how to write a custom matcher

[finish #54582642]