Update ctrlOverSerial.c

Various updates to make the python side easier.