It's because the code is for the original version out the output.

You will need to change the delimiter for split from " "->"," and change the array subscript references to match your "out" file.

...or feed in the data in the original format.