The file format may be acceptable to the program, but there is actually a linebreak missing (my fault) before the second, third etc "BAND" entry. Not sure if that has anything to do with your plot, but you can try to change it manually by just editing the file. I'll amend the code a bit.
Which band did you select for the plot? BAND 5, I would assume?
I don't know, I have no experience with this (yet!). Unfortunately XCrySDen doesn't run on my Windows machine in Cygwin, it just segfaults... So, it's hard to do any testing, really. I'll look at the code I wrote, and the file format, to see if there was something I missed.