Added block extraction mode
Added support for bad block checking during writing