Bug fixes.

Better handling of the reply from the board to the SA: command.
Added code to better handle reading the serial data, so that it won't
get partial replies from the board.