removed unused code in synonym extractor, refactoring