Moved helloworld.c to .cpp.

Also made a few minor formatting changes.