pushing edge_removal changes - includes outputting stats to file. not fully tested yet.