Add end page limit

and adding some documentation on top as well