fix Buffer& and add simple examles