After code refactoring

Preloader added.
Code refactored.
Mediator added.
Mini fixes.