cluster-ha-singleton code style, formatting, best practices, licence fixes