some bugfixes,tests and worked a tiny bit on the readme. It seems to work now!