more apply-kw tests
code tidy
add example to readme