2nd attempt at code.  This works, no comments yet.  Pausing to think about approach to writing code, esp., limit argument handling.
2nd attempt at code.  This works, no comments yet.  Pausing to think about approach to writing code, esp., limit argument handling.

dgabbe/dgutil,dgabbe/dgutils