Added 'addData()' function to the CDFFile class for saving data to a CDF file.