fix main so that it correcly uses the zmq interface
fix unit test
Merge pull request #31 from CapillarySoftware/fix_main

fix main so that it correcly uses the zmq interface