Rework of Buffer classes.
Several changes in the buffer implementation and documentation.