fix variable name, use json for opencalais, fix double term