moved sample segments to function. Changed how folders are made on donwload.