Many fixes

Resource files should be handled corectly,
ability to make arifact from two modules,
many small fixes