Updated UI and backend

Added File chooser to choose output file directory.
Before it was set by default to "my" home dir.