Issue#27: C interface implementation

following issue #27
See above. This repeats many times bellow.