Corrected error handling in WCF
Refactoring of WindowsUI

- Better readability
- Moved classes to correct locations