refact, rename EventStructor to RingBuffer, and move it to core