Fixed saved to a file and print

Gigantic code fix ---