better docs and tiny refactor of google-api example