Completed javadoc for MainActivity.