Got a working example, too.
Cleaned code. Added ability to do structured queries using Google's API.