Updated how (and when) debugging files are saved.
Removed some debugging info from Correlate.Correlate function
Merged with home branch