Making some fixes in printing out the csv file.  Also, now printing out IDT codes.