Minor Improvements.

Added a ring_buffer_t element. The function ring_buffer_get returns a
value instead of copying to a buffer. Changed put() and get() to
preincrement.