Added comments to MainActivity.