create directory and initialize variables

create directory and initialize variables