adding documentation for the control_message() function