User-friendly changes.

Added messages when clicking on buttons (dialogs),
added directory creation when not existing,
some refactoring in Dialogs.