Added shake functionality to return to main activity and exit app
Improoved handle of oncreate, onpause, ondestroy when switching between
activities