Add some documentation.

Make cache handle buffers with negative strides.