update readme.md
add tests
windows bug fix