I saw that it was interrupt driven but I want something that just runs in the background continuously and I'll just sample the serildata when I need to.

I'm just trying to get a head start before I sit down and play with it, but the code as shown, will get me close? (or do the job).

I left out all the references to the interrupt....looks like that's pretty much it?