Change to non-static API

I need non-static API due to dependency injection. I changed classes, tests and readme, co if you can make non-static version (branch) it can be greate.