fixing logic errors that caused occassional failure

- storing values of header and checking against those instead of header object (which can fall out of scope and cause mem errors)
- commenting out shiftBuffer line (deprecated, implementation can cause buffer overflow)
- sending bytes received even on checksum failure
- utilizing continue instead of break on checksum failure