switched to absolute gain in modularity, made some changes to the
calculation