Added markers to ringbuffer

added tests and docstrings as well