Fixed pagination issues, updated to version 1.0.2.

Fixes #1