added gexf output support, code optimizations, readme modifications