adopt changes from wingj gui

* callback for file selection dialogs
* PEP8 compliant variables, functions, methods and classes
* preset values from the commandline for GUI testing