added ability to send message and save messages to a json file
added ability to send message and save messages to a json file