Added documentation for fitting algorithms.