fxn to generate and store multiple independent networks