Clean up and document MainActivity

Addresses #24 and #32.