Fixed bug that provided incorrect master node
Formatting update
Minor edit