Add option & defaults, raise err if no more tries, minor fixes.

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>