Added comments to sample program