Made general updates to analytics loading.

The updates are mostly style and wording changes.
Also added a bunch of comments.