bug fixed with initial master selection. bugs fixed with dead master returning and epoch numbers