Added buffer() bufferWithPadding(), closes #39