add import/export dialog, few bugfixes
cleanup