more user friendly, see extended

all initial conditions set from run()
easy switching between smallWorld & random nets
If randomly generated network wont stay connected, it restarts after a
given number of attempts.