add functionality to array-output function, edit file names