The masterActor/workerActors vars weren't used. Neither was masterPort/masterUrl, outside of a local var inside of start().

I changed masterActorSystem from a var to a val List, just because then it's not a var.