Added examples and fixed minor bug in topic filter