[enh] stick results from the same category and template and [fix] rewrite the google engine

Implement issue #96
and first patch for the issue #92