implementing search operation in diagram editor, refactoring of some search structure. Now each relevant terms has an original form per file it appears in.