Added getSelectedFileWithExtension to SaveDialog

Files are now saved by the chosen extension method and not just .txt