work on ernm and model fitting in ernm and ergm