Fix some bug:  add CRC checksum, fix memcpy