Matrices are now correctly printing out to text file according to the 
number of seconds it is preset.