Added a check for endian-ness before reading or writing any files. Negotiation test now passes.