added comments in app delegate