by Dan Marsden.
some of that (hard to read) looks like you might have an old version of the code installed? - can you make sure you've got a copy of the MOODLE_23_STABLE branch from my git repo?