Master/Slave control working

The threads now broadcast to the is one has take the master
Closes #20