Complete javadoc for SlaveController

I noticed an unhealthy recursion in waitForSignal(). waitForSignal() should be called in a for loop *outside* of itself. The current setup runs the risk of a stack overflow, if ever the slave brick gets a lot of incoming tasks.