made a more generic FitDistribution class. WIP