re-wrote code since google api v2 is no  longer available also add unit tests