UBX protocol help: configuring a NEO 6M Arduino GPS Module... Fletcher checksum?

The NMEA protocol that my GPS module uses outputs strings that look like this over the serial monitor:

The UBX protocol that I am sending and receiving in the code that I posted, on the other hand, has the following structure: