Added comments to 4 codes