comment explaining need for getbuffer added to example code