Cleaned up app.coffee and added comments.