added some GUI support function
removed empty diagrams
better prefs directory name, wider layout
using dialog return codes
method rename, cleanup, removing duplicate code