Make the min number of event lag samples before completion configurable, and lower the default to 10.  Fixes #5.