creates study and assay txt files