day8Looping and minor changes to do while loop

started looping files for arrays