Update AppActivity.java

Removed debug outputs
Added comments in the doxygen commenting style to the important functions