Made some small changes to louvain