fix #2;add topic match check
add doc