Application now logs data out to a text file which the user can select through a dialog.