Adding validation code for length of packet (here and other place).  Also now check for NaN when unpacking floats elsewhere.