Max retries now a configurable option

Refactored ‘--no-write’ functionality
Updated documentation