new distrib version :
-added multi output
-added resources copy
-added some code refactoring and comments