Various bug fixes; debugging hexconfig struct