Commented out the debug printouts
Fixed a minor bug in 2 if statements, so it doesn't give an error message
if the Cancel button is clicked within Save/Open dialog.