Added new ChkDepQwk function. Various minor changes. Added new example.