added comments to demo application