Add domain mode
Merge pull request #4 from shi2wei3/master

Add domain mode