Zmq

Old commits to fix small bugs and remove cout