Fixed Issue #11

Now checks to see if the results returned are less than the max results
requested, therefore not creating an index out of bounds exception.