In.tiff

function names should not be CamelCase (saveChi->save_chi).

Also, and more importantly, saveChi and saveDat look identical except for the file suffix (.chi vs .dat).  Why not make one method that has an argument for the file suffix?