added the loading of the twig extension and fix mis-spelled class name
added the setPaginationPath method and added type hinting for the pagination methods
added helper method to get the mid range and use default if has not been setup correctly