Improved buffer updating interface
Merge pull request #253 from kvark/buffer

Improved buffer updating interface