Code formatting
Cleanups
Cleanups and formatting
Bugfixs: more consistently use error vs. info dialogs
Bugfix: fix bug when loading/saving non-existent hierarchies
Bugfix: handle window.close()
Bugfix: prevent errors when attempting to export empty hierarchies