Pagination! Issue #19 resolved!
Don't divide by 0.
Pagination now fully works. And cleaned up a bit