Fixed error in file writing function.
Class to read in the archive file and populate the data structure.