Added copy2d() function, print modifications