LTM dev: intermediate commit for the NodeModel
50% done, most code matches the original MATLAB pretty well.