added sysnonyms_frame function and moved the internal use of env.syn to external in synonyms function