Update docs + fix endian issue