Issue#27: C interface implementation

following issue #27
Also it would be great if every file ends with a new line..