Moved helloworld.c to .cpp.

My C++ compiler complained because of the file extension, so I changed it to cpp, which worked fine.

Also made a few minor formatting changes.