I2C EEPROM Emulator - arduino.

byte WR = Wire.receive();

What is that for? That will be called before setup() and your call to Wire.begin().