Changed big endian to little endian in generateChecksum method