added toString() method on buffer