Added comments to the example code.