Add ability to configure the maxBuffer

The maxBuffer defaults to 200*1024, which might be too short if you
expect a lot of errors during development or if you import new
codebases. Now you can override it.