fixed a bug,  tests and updated readme and version