transformed the header reading part of the code as a function to return the reading head position or an error code
added the float flag and corrected the byte depth
sorted the endianness flag
works apart for the printing (which will need proper management of word size)
another casting mess
works when reading in byte...