Added pseudocode comments on MainActivity.java