initial code for reading local hex file