Add the rangefinder code to turn the device on.  Functionize some basic stuff - the rest is a mess and needs a lot of work.  Add more useful comments for device pins, etc..  Remove some unused variables.