Changed erase routine to erase flash to 0xff instead of 0x00