better format, added some methods. Added centrality calculation