took ergm code out of the example and only used necessary parts
removed ergm suggest and documented