Add type of message to comment
Fix protocol of process worker