misc updates

-Refactor the code to be more readable
-Modernize the UI
-Remove useless files

...and some more.