Added detection of the existance of a master before trying to do set_master during startup
Debugged an issue with unset_master using hostname instead of get_local_ip and lowered output form get_read_only