added log messages to user interface
robustified tree initialization