Thresholder and reset working (see below)

A bit of hacky codegen in template
mRS.finish() called after each kernel
Monitor not working properly (yet)
Old template directory removed