init commit of c implementation