Revert "eliminated all functions except lm_stats"

This reverts commit bc2eaea51123955c70ceb095d3b1ffce9c9d69af.
Eliminated all data files