eeprom does not store the data after restart....

Ciao,

I think there is an error in EEPROM.write reference in Arduino site:

the example is wrong (uhmm at least at me seems wrong)

#include <EEPROM.h>

void setup()
{
  for (int i = 0; i < 512; i++)
    EEPROM.write(i, i);
}

max value for a EEPROM memry location is 255 (maximum 8 bit value).

If You want to write structured data easily You can follow this example:
http://www.arduino.cc/playground/Code/EEPROMWriteAnything

Ciao,
Marco.