[api] refactor
[match] fix matching
update readme api