Fixed bugs, added network statistics computation and a rewiring strategy