Added methods for distance and fixed collinearity