cleaned up CAN demo code