fixed some formating issues and added comments to app.js