Added documentation for the C and C++ interface.