Added first wpf template and refactoring.