set print to file filename + minor fixes

see https://bugzilla.gnome.org/show_bug.cgi?id=587053