add option for a max buffer size
Merge pull request #1 from jut-io/max-buffer

add an option for a max buffer size