Added analytics

Closes #4