Fully commented app.js

Added comments to app.js