New hex encoding stuff. Rename test programs.