changed protocols, edited parameter tmpvariables to tmpfolders/files cre...

...ated by a function in the header