remove example and tests
update dependencies, use lodash, clean code