Updated ringbuffer to take length instead of shape as init argument.

The shape and thus the internal buffer initialization is done on the first
append call.

Updated the tests and added docstrings.
Fixed docstrings for Raises
Added missing test docstring.