Added DTA file reading and writing