working changes to refactored sensor workings
changes nearly compile
Terminator program now compiles