add stop function
Merge pull request #7 from xiangli-cmu/master

add stop function