Added docstring to template_match.py