Added buffer support
Merge pull request #3 from anandsuresh/buffer-support

Added buffer support