added installation of resolved dependencies (from downloaded -> lib), bug fixing, refactoring