added hex output to serial terminal, other random error checking