Add c file, h file and .gitignore file