small error fixes in classes, MAT1 backup file