Added comments to sampleApp.js