Changed protocol to deal with changes in localization. Implemented slave main method and communicator's constructor. Added some comments