Change C++ source file names
Add C implementation