Better logging in MainActivity

Addresses #3