test a directory
some serious bugs fixed in rebuild table, one optimization in wordToSynset