introduced .lm matrix file format and fallout code