added comments to all programs