Code to save blocks on the SD card
Removed unnessary function store_error
Added startup check to find past errors