cleaned up CAN interface, fixed warnings