Performed refactoring:
  - added tests;
  - updates in filesystem subsystem;
  - reduced traffic sent to frontend;