added some comments to ViewController.m