follow new google search results layout
fix coding style.

change indent to 4 spaces.
fix trivial bugs.