Fixed bug which caused ill-formed logZ values.
Updated to latest liboi.
Fixing a few typos from renaming GetResiduals to GetChi. Updating exporting routines int he GUI.