add comments to main.js and appView.js