Refactoring...

IDE functionality encapsulation, removing wpf window, async...