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

Add remote mode