Added comments on RingBuffer
Bug fixed : RingBuffer bug