eliminated all functions except lm_stats

ELIMINATED ALL FUNCTIONS EXCEPT lm_stats(). WILL NEED TO RETURN TO
MASTER BRANCH TO GET THESE BACK