Fixed general syntax mistakes

I remembered that I was writing in C.