added error dialog
adapted imports
rearranged packaging
fixed minor namespace inconveniences
improved command-line argument handling