working version, bug client does not write logfile, leader election not done by biggest operations log yet