added gensim analyze, changed QueryResult implementation, minor fixes