Updated getDataB

Set max (per batch) to 10000 and changed batch to take interger values
instead of logical.