help with serial.read

See that cool smilie in your code? Did you put it there?
That is why we ask everyone to post the code in code tags. Please read the how to use the forum sticky.

now that code. What does it do, what do you want it to do?
What on earth is that libary, it is good to provide links to obscure libaries.
Why the serial flush? Look it up, it does not do what you think it does. Generally this command is not needed.

The serial code is written so that when at least one byte is ready to read you read two bytes, smart?