Added a dialogue for file selection.
Fixed bug with filename dialogue and adjusted .gitignore.