degree distribution implemented

one bug still to be removed