Fixed maxResults bug

maxResults was ignored if <= 1. Calling searchProvider.Search(myCriteria, 1) returned more than 1 document.
Merge pull request #4 from fcingolani/master

Fixed maxResults bug