Cleaned up MainActivity.java, rename variables, add comments for clarification, remove old code.