Fix parsing hex file.
Add testing of loading/saving hex and binary files.