Pull Node class methods into a new class YamlDir

also fix tests, update UI