Fix ngc.h and add some documentation