Corrects function file_to_array_mtd and displaying files