Fixed control program

fixed control, so that it actually registers.
The rest