added preliminary support for module display and a bad spectral partitioning algorithm