Fixes crash on opening Treealyzer GUI

Also updated some comments.