Improved exception handling.
Implemented CInputReader class.
Improved CLI parser.