Adding comments and eliminating old code from the MainActivity.