refactor LFit class to make it more similar to KLFit