Added documentation for detectBadPoints and fitPoints. Refitting posibly for iteratively fitting points according to conditional probabilities