Commented duplicate public_network def.  Added gui flag read from config.