Add comments to function snippet