updating doc and adding tests
Updating README