added category tags and time-range tags to merge.pl