intial C integration done
code formatting