Added java docs + making sure we if we get a CS from another master while we elected our self, we join it.
added a check for a master change while joining another master...