Fix ringbuffer so it will not copy the array.
Final touches to stuff