fix signed/unsigned bug
add query term info into json output as well
Merge branch 'diffbot-testing' into testing