Code clean-up

Rename from .cc to .c to better reflect that it's C and not C++
Removed loads of comments and other extra stuff that just gets in the way.