Merge pull request #7 from yulin2/async

Async
dominator stuff
add thread-safe class