Added smart pointer for CAN class object to allow automatic destroying of as well as weinitialization if ::connectDevice is called more than once. Replaced one byte variables with uint8_t. Added const where it was suitable.