Added exception handling code. Removed unused code. Remaned the solution.
Readded resource files.