Fix off by one when copying rows

if (# of rows in table % batch size) == 1
then the last row would be missed in the copy.
Fix off by one in percertage complete calculations

Was causing NaN FloatDomainError when only 1 row was
in table.
Clean up logic in percentage calculation
Merge pull request #5 from analog-analytics/master

Fix off by one when copying rows