SIMCA multiclass classification implemented plus small improvements