fix off by one errors and add modularity_und_sign
fix off by one error in modularity_*tune_und_sign, add modularity_und_sign, and
refactor to use np.fill_diagonal

update changes

squash