ringbuffer: don't overwrite in `ringbuffer_add`
ringbuffer: add documentation