some more tests and started a lib :)