added log.txt to record output to file