Fix undoEventFromBuffers accessing wrong buffers array
Add missing JSDoc for BufferAddEvent