pagination improvements

+ documentation improvements
Merge pull request #22 from kashyap02004/master

pagination improvements