Added documentation for extend_match