Added lots of comments to the demo source code.