updated centrality and wcentrality substantially, and improved core code as well