Added logging to file as bool log_ON. - v. 0.81.

Set log_ON to True to output buffer  to log.txt. - v. 0.81.