cgo: added documentation