added collinearity function
cleaned up files