changed execute to return TF, IDF, TFLogIDF, infoGain for each term. execute function logs only if outputAsHDFS flag is true.