added send_message function and described the routine of parse_message function.