AssembliesManager code comments and small refactoring