Now can pass directory or config file; stores data in that directory, or the directory of the config file