Sensor/Control commenting

Commented and changed names of variables and functions in sensor and
control.