Documented part of MainActivity.java... more soon.