Yeah, when you set the DATA as individual blocks such as the ones you demo'ed, then it works flawlessly, but try setting DATA to say..
C 90
K One
K Two
F 1234
R This
R Is
R The
R First
R Example
#
K Second
F 4321
R Second
R Example
#
# Some
# Comments
#
K Last
F 0101
F 0202
F 0303
R This
R Is
R The
R Third
R And
R Last
R Example
Then you'll realize that the problem is the program interprets the whole input as one block, when in reality theres dozens and dozens of them.