add getfrom func
add setTo func
refactor comments
Merge pull request #8 from xiangli-cmu/master

Add GetFrom and SetTo func