Update detectTopic.pl

just a draft script.  need to modify!!