added comments to MainActivity