fix files path to use baseDir, move defaults to a config file, update tests