Added parsing of input messages, getting command type, register number, checking checksumm