furthered encapculation on MainActivity, more thorough Javadoc comments on MainActivity