Adding javadoc to MainActivity.