Pad printed bytes with zeros
Print hex bytes in uppercase
Fix lots of memory errors

This also changes the performance tests and changes the style of some function names.