clean up timer and change heartbeat and election to the new timer
gofmt
close debug and clean println
clean up codes
Minor Timer refactor.