User interface added for Master Node

Lots of other debug tweaks as well.