More documentation and added an underflow check to a buffer utility
method.