phantom code update (coil fits). and fix for memory problems in M0 calculation