new var added
added listfile + syntax fix
creating dir for files and some fixes