dix datatype issue in memcpy (always give the datatype for calculating number of bytes to copy), clean up comments