refresh update

updated the sketch so the data is cleared after each write. Still not
perfect, it flashes a bunch but it'll do for now.