Update MainActivity.java

Adding comments to the code...