Code clean up and splitting up the model

Model doesn’t quite update correctly with deflectors.
Switch changing doesn’t turn off power