fixed leader election issue
Better logging
Better logging
Merge pull request #44 from fanhattan/leader_election_issue

fixed leader election issue