refactor code
add test
update README
Merge branch 'master' of https://github.com/ivanprjcts/latch-UNIX