add comments to the programs for reference