There are so many typos in the code that it must have been typed in manually rather than pasted from working examples, but it was very very informative.
It could also be the version. When we uploaded it for the first time, all the codes >,< were interpreted by a WP plug-in wrong so we amended them on the go. The version being shown is probably the one before that correction.