Added special input of material of item of -1
Reordered binary fields to be little endian