Started actually wiring stuff with the matlab code. Quite a bit of boilerplate.