added method get_messages_by_port_complete() + several improvements