Corrected mistakes in C file