Fix duplicates script
Update to zookeeper library 3.4.5 and other fixes