Added unhandled exception handler.
Added #regions and comments.
Sorting App.xaml.cs.