[kmmatch] add docs in header