added number of data grabbed at one time and fixed some small paging bugs