made filtering more efficient; improved handling of batch mode anagram generation