add device wrapper
Merge branch 'master' of github.com:shengmin/cs-449