initial cleanup of lm.Rmd