changed to unsigned short for reading Analyze headers in C code