[PrinterDriver] Moved checksum and prefixing command to GCode class.