Added documentation for configuring items per page

Also removed unnecessary scoping of constants.

Please cherry pick into 2-0-stable.