Added log file to control testing

outputs to "logfile.txt" the time of each run of "stabilize()"