Small code tweaks

More readable
Big UI tweak

Updated the UI to use a progress bar. Also, the UI no longer freezes
when running, due to running through a background worker. Enjoy.