Bugfix: now checking all bytes of STX header
Clean up: removing primitive and slow version of code
Bugfix: handles case if we have no valid packets this time around