Add setMaxResults method
Fix tests
Merge pull request #248 from Baachi/limit

Add limit/setMaxResults method