Update and rename message.c to message.cpp

Fixing a few errors