Added match method documentation to api.py