Input validation and exceptions handling completed.
Improved UI.