Fixed a bug with maxCompletions that had broken some (all?) contracts.
Merge pull request #28 from SimonTheSourcerer/master

Fixed a bug with maxCompletions that had broken some (all?) contracts.