Added comments to core.gen