Fixes to leader election.
Change logging level from info to debug
Merge pull request #50 from calvinjia/master

Fixes to leader election.