Moment of intertia calculation finished and generic data fit function created.