Added smarter FLASH erase functions that check the first 128 bytes of the sector if it's clean or not before erasing it. Should hopefully prevent some unneccassary erase