Fixed bit-reading (endianness was wrong)