[Main] Added config dialog class

* Improved Config class