added documentation for new match predicate

please explain max_expansions