Add a hystersis loop correction function to Util
Bug fixes to AnalyseFile.threshold and DataFile constructor