Add documentation and update restart rules.

Implement time backed backoff for restarting and fix failure count when
the maximum is 0