updates readme
bugfixes: tests
bugfixes: lib code