Added comments to functions, cleaned up

Commented new MasterController and DualSensor functions, cleaned up
unused code