Published code from home for LM

LM code from  home