fix start row calculation on last page

when the last page was not full height, the initial row number got
negative.  start counting properly at 0
remove unneeded import
add .gitignore