Add command abstract class for serial device drivers; class Serial.