Edit Limited the limit inside of the 'next meta' to be above 0
Edit Swapped around the if statement and also moved the local remainder creation to after the if statement
Edit Added a test to check for the previous/next returning null when neither are available
Merge pull request #8 from Blooie/feature/pagination

Edit Limited the limit inside of the 'next meta' to be above 0