Cleaning

Added a preloader to filemanager, code cleanup #1
-