Improve items paging, get config values, add option to set the number of items per page and add comments