Added a helper method for getting the app delegate
Added a helper method for gettings the documents directory