Added some comments. Added an example of a call to AppDelegate.