Moved init code to main activity and implemented crashReporting