added extra comments
Added C-code to the project