added log dir and updated thor executable