Spectral modularity: added documentation, check against weighted graphs.