move C code to src directory