add msg.c, msg.h for some messaging functions for usage.