Separated GUI from functions
WIP
importing works
Functional again, without progress bar.
Tweaking
WIP