added failure detector and log
added failure detector, log, and modified heartbeat