Fix crashing bug on application start with documents.
Added few google analytics, more to come