document and test the analytics library
Merge pull request #68 from google/devoncarew_doc_test_analytics

document and test the analytics library