cluster-ha-singleton code style, formatting, best practices, licence fixes
Changed to use boms and corrected strings enconding