Add implement verify and erase functions and support for old api. Add cfg for eeprom.