added comments to 'MainActivity'