Reformated coding style and fixed execution of multiple commands on each host by redirecting output to /tmp/cluster.log.