Edit: Nevermind, I managed to copy pastey the code across and cludge it into place. Also, I kind of understand it enough now to tweak and edit it as needed, so that's cool.
for nodes that are not part of the library but defined as .mmg, you can add them via the Tools > Create menu