Function for interoperability with C style thrid party libraries

Added more docs and fixed missing featrues so interoperability with C is more clear.