Add optimist and various tuning options

My records aren't typically 10kb long so I wanted to play around with records of various lengths.

I also added the ability to tune some of the other hard-coded values such as buffer size and records per batch. 

If none of these are used it has the same defaults as the original version.