Reformatting of the Balancer class and additions of new internal classes to handle graph-file