cleaned up sensor.js
added sample config
moved app to example folder.  made it read in a relative path config