Fixed sendMessage and improved functionalities

Added passing instance to callback function (static function)
Added partial receive and send message
Changed string type from char* to std::string based
Updated test program (main.cpp) to keep sending random message every  5
secs