Changed export path for JSON files, added makeDir function