move nrm -> nrm converter to nml module, and reshuffle a couple of other bits