added comments and made the app name a variable