new version of assemblies comparison script + refactoring