Fix '-h' argument.
Added handler of exception.
Fixing bugs.