Remove old definitions, normalize endian checking and update README