add javadoc for MainActivity

add javadoc for MainActivity