writing out samples, logZ, H, etc. to specified logfile now
Merge remote-tracking branch 'origin/master'