Minor improvement of the GUI
Attempt at fixing issue #2, the tree view should now retain its expension state
Attempt at fixing issues #3 and #4. Plus some minor improvements