added more comments to the demo file