added logOutput

removed one unneded thread and added log output handling so one can see
connecting devices