205 decoupling learning material crud

Fixes #205
I think this should be lm_number though maybe lmnumber for consistency between input/output.