add reset api
Merge pull request #66 from michaelfung/master

add "reset to factory defaults" api