Add documentation for topicMatchesSub