Add lots of debug messages. Now writing saved file array as STRING to file.