updated for digital module
started implementing rangefinder class... not sure if its correct though.