Added toString methods for buffer related classes