Fix batch_size bugs.
Version bump to 3.0.1
Regenerate gemspec for version 3.0.1