minor errors corrected
working test example of master/worker communication