added C docs