Added API docs for C. Removed some unnecessary function parameters in both C and C# code.