adding readme.md and fixing unit tests