Moved the preloader stuff to its own folder
Made the preloader functional