Add create dir function and download csv function