[refactor]: SetDataDirectory moved out of constructor. Change yml extension to yaml. Data changes merged in rather than written directly.