added error codes and sorted the printout endian-ness. Added some 8bit and 24bit test files