Added more comments to AppDelegate