added some comments to InputActivity