Code cleanup.  Added a print to the app delegate to help testing.