non-finalized version of milr source
code to compare methods on CFS data (unfinished)